package com.example.demo;

public class Result {
    public boolean success;
    public int count;
    public String lastError;
    public int[] paramArrayOfInt1;
    public int[] paramArrayOfInt2;
    public int[] paramArrayOfInt3;
    public int[] paramArrayOfInt4;
    public int[] paramArrayOfInt5;

    public static Result fail(String msg) {
        Result result = new Result();
        result.lastError = msg;
        return result;
    }

    public static Result ok() {
        Result result = new Result();
        result.lastError = "server ready!";
        result.success = true;
        return result;
    }

    public static Result ok(String msg) {
        Result result = new Result();
        result.lastError = "server ready!" + msg;
        result.success = true;
        return result;
    }
}
